Click Mouse on Main Menu Bar to Activate It!

SiteMap Applet

There are two ways to use the SiteMap applet - as a popup window activated by a button, or as a tree in the HTML document itself.

1. As a popup window

  1. Save the background image for the SiteMap applet as 'SiteMap.gif' in the same directory as the applet classes, applet graphics and document.
  2. Add the SiteMap applet to your document as follows:

Insert This code into between the <Body> tags of your HTML Page.

<applet code="Outline" width=200 height=400></applet>

Click here to extract all needed files with example to your hard drive!

 

  1. Change the width and height to match the size of your background graphic.
  2. Change the 'frame' parameter to the name of the frame which is to show the document urls (or remove this line if you would like documents to be displayed in a new browser window).
  3. Change the image tag to the HTML which is to be used on non-Java browsers.
  4. Create a data file for the applet in the same directory using a text editor. This file has the format shown below:
Governor Multimedia Home=nsmain.htm
About Governor Multimedia=nsabout.htm
Internet Technologies={
RealAudio & RealVideo=nstech.htm#RealAudio
ActiveX=nstech.htm#ActiveX
GovActive Control={
GovActive Control=nstech.htm#GovActive
Pendulum Demo=pendulum.htm
}
CGI & Perl=nstech.htm#CGI
Java=nstech.htm#Java
}
News and Announcements=nsnews.htm
How To Contact Us=nscontact.htm
  1. Each line in this file consists of the display title followed by the url of the document to be shown if that entry is selected. Sub folders are denoted by using an open brace and the end of the folder is denoted by a closing brace on a line of its own.
  2. There are a number of optional parameters which can be used to control the behaviour of the SiteMap...
<param name="SitePic" value="picture URL">	// Picture displayed by applet
<param name="FolderPic" value="picture URL">	// Picture used as folder
<param name="PagePic" value="picture URL">	// Picture used as page
<param name="RootPic" value="picture URL">	// Picture used as root item
  1. You can also change the picture of any individual tree item by appending a '<' character followed by the picture URL to a line in the site map .dat file e.g.
About Governor Multimedia=nsabout.htm<about.gif		or
GovActive Control={<control.gif

2. As a tree in an HTML page

Adding the following parameter to the applet parameter list causes the tree to be drawn within the applet area on the page rather than in a pop-up window...

<param name="InPlace" value="yes">

Adding the following parameter to the applet parameter list causes the in place site map to be drawn without a border...

<param name="NoBorder" value="yes">

3. Changing the applet colours

There are three parameters for controlling the applet colours:

<param name="BackColor" value="0,0,0">
<param name="TextColor" value="255,255,255">
<param name="HighlightColor" value="192,192,255">

The values of these parameters are the "red,green,blue" components of the colour required. The above example sets a black background with white text and a light blue highlight.

N.B. If you change the background colour of the applet, you will also have to alter the page, folder and root icon graphics to match the background, otherwise you will get a white square around each of them.